From c97b3f9250a8cb8e0a54b415cdf4b7f682f4e6b7 Mon Sep 17 00:00:00 2001 From: Jan D Date: Fri, 16 Apr 2010 19:05:31 +0200 Subject: [PATCH] * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used. --- src/xmenu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/xmenu.c b/src/xmenu.c index c8067a47deb..796dd3093e8 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -978,14 +978,9 @@ apply_systemfont_to_menu (w) if (XtIsShell (w)) /* popup menu */ { Widget *childs = NULL; - int num = 0; - XtVaGetValues (w, XtNnumChildren, &num, NULL); - if (num != 1) return; /* Should only be one. */ - - childs[0] = 0; XtVaGetValues (w, XtNchildren, &childs, NULL); - if (childs && *childs) w = *childs; + if (*childs) w = *childs; } /* Only use system font if the default is used for the menu. */ -- 2.30.2